Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents VPNSettings from reporting fake changes #2004

Merged
merged 5 commits into from
Dec 22, 2023

Conversation

diegoreymendez
Copy link
Contributor

@diegoreymendez diegoreymendez commented Dec 22, 2023

Task/Issue URL: https://app.asana.com/0/0/1206212872939261/f

iOS PR: duckduckgo/iOS#2288
BSK PR: duckduckgo/BrowserServicesKit#614

Description

Makes some changes to VPNSettings so that it won't publish fake settings updates.

Also changes main App's startup behaviour slightly so that the VPN menu app will relaunch every time the main app launches (for debug builds only). This is to make testing easier.

Testing

  1. Run launchctl remove com.duckduckgo.macos.vpn.debug from your terminal to ensure the VPN menu app isn't running.
  2. In Xcode, select the DuckDuckGoVPN target, and run it.
  3. The first time it launches, start the VPN
  4. In Xcode, re-run the same target so it's launched again.
  5. Ensure the VPN doesn't disconnect when the app is launched again.

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@@ -121,6 +121,11 @@ final class NetworkProtectionAppEvents {
versionStore.lastVersionRun = currentVersion
}

#if DEBUG
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is to make sure we reload the login item always when debugging.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@diegoreymendez diegoreymendez changed the title Diego/fix fake settings update Prevents VPNSettings from reporting fake changes Dec 22, 2023
@@ -121,6 +121,11 @@ final class NetworkProtectionAppEvents {
versionStore.lastVersionRun = currentVersion
}

#if DEBUG
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

diegoreymendez added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Dec 22, 2023
Task/Issue URL:  https://app.asana.com/0/0/1206212872939261/f

iOS PR: duckduckgo/iOS#2288
macOS PR: duckduckgo/macos-browser#2004
What kind of version bump will this require?: Patch

## Description

Makes some changes to `VPNSettings` so that it won't publish fake settings updates.
diegoreymendez added a commit to duckduckgo/iOS that referenced this pull request Dec 22, 2023
Task/Issue URL: https://app.asana.com/0/0/1206212872939261/f

macOS PR: duckduckgo/macos-browser#2004
BSK PR: duckduckgo/BrowserServicesKit#614

## Description

Makes some changes to VPNSettings so that it won't publish fake settings updates.
@diegoreymendez diegoreymendez merged commit 21845c7 into main Dec 22, 2023
14 checks passed
@diegoreymendez diegoreymendez deleted the diego/fix-fake-settings-update branch December 22, 2023 20:45
samsymons added a commit that referenced this pull request Dec 24, 2023
# By Diego Rey Mendez (4) and others
# Via Fernando Bunn (2) and GitHub (1)
* main:
  Adds option + click support for our VPN menu to show some useful debu… (#2007)
  Update latency & tunnel failure monitor implementation (#2005)
  Prevents VPNSettings from reporting fake changes (#2004)
  Updates the copy for the VPN status bar item context menu (#2003)
  Implement subscription purchase (#1906)
  DBP: Add m_mac prefix to Pixels (#1952)
  Bump version to 1.69.0 (96)
  Update embedded files
  Update Link Tracking Protection to preserve headers (#1965)
  VPN menus improvements (#1979)
  Data Import ux redo (#1754)
  Fix: "SwiftLintPlugin" must be enabled before it can be used (#1987)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants